{#include file="admin_header.htm"#}
{#include file="admin_ad_nav.htm"#}
<div class="admin_main_nr_box">
  <form action="?act=ad_category_edit_saveall" method="post"  name="form1" id="form1">
    <table width="700" border="0" cellspacing="0" cellpadding="5" style="border-bottom:1px #CCCCCC solid; margin-bottom:8px;">
      <tr>
        <td width="533" height="25" style="font-size:14px;">广告位置管理</td>
        <td width="68" style="font-size:14px;"><input type="submit" name="Submit2" value="保存修改" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'"/></td>
        <td width="34" style="font-size:14px;"><input type="button" name="Submit" value="新增广告位" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'"  onclick="window.location='?act=ad_category_add'"/></td>
      </tr>
    </table>
    <table width="700" border="0" cellspacing="0" cellpadding="2">
          {#section name=list loop=$list#}
          <tr>
              <td width="50" height="30" align="right" style="color:#666666 ; border-bottom:1px #CCCCCC solid">id:({#$list[list].id#})
              <input name="y_id[]" type="hidden" id="y_id[]" value="{#$list[list].id#}" /></td>
            <td width="200" style=" border-bottom:1px #CCCCCC solid"><input name="categoryname[]" type="text" class="article_category_input_a"  onfocus="this.className='article_category_input_c'"   onblur="this.className='article_category_input_a'" value="{#$list[list].categoryname#}" maxlength="20"/></td>
			<td width="50" align="right" style="border-bottom:1px #CCCCCC solid">类型：</td>
            <td width="60" style="border-bottom:1px #CCCCCC solid"><select name="type_id[]" style="font-size:12px;">         
			 {#section name=ad_type loop=$ad_type#}
               <option value="{#$ad_type[ad_type].id#}" {#if $ad_type[ad_type].id==$list[list].type_id#}selected="selected"{#/if#}>{#$ad_type[ad_type].categoryname#}</option>
			  {#/section#}
            </select></td>            
            <td style="border-bottom:1px #CCCCCC solid">
			&nbsp;
			{#if $list[list].admin_set=="1"#}
			<span style="color:#FF6600">说明：系统分类,不可编辑</span>
			{#else#}
			自定义广告位
			{#/if#}
			</td>
            <td width="45" align="center" style="border-bottom:1px #CCCCCC solid" class="link_lan">
			{#if $list[list].admin_set!="1"#}
			<a href="?act=del_ad_category&y_id={#$list[list].id#}" onclick="return confirm('你确定要删除吗？')">删除</a>
			{#/if#}&nbsp;
			</td>
          </tr>
          {#/section#}
        </table>
  </form>
</div>
{#include file="admin_footer.htm"#}
</body>
</html>